package com.marktrace.service.impl;

import com.marktrace.dao.TStudentMapper;
import com.marktrace.entity.TStudent;
import com.marktrace.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    private TStudentMapper studentMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return studentMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TStudent record) {
        return studentMapper.insert(record);
    }

    @Override
    public TStudent selectByPrimaryKey(Integer id) {
        return studentMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<TStudent> selectAll() {
        return studentMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(TStudent record) {
        return studentMapper.updateByPrimaryKey(record);
    }

    @Override
    public int insertBatch(List<TStudent> list) {
        return studentMapper.insertBatch(list);
    }
}
